package com.bby.common.model;

import lombok.Data;
import lombok.ToString;
import org.springframework.data.annotation.Id;

import java.util.HashSet;
import java.util.Set;
import java.util.UUID;

@Data
@ToString
public class UserGroup {
    @Id
    public String id;
    /**
     * 只用来显示
     */
    public String name;
    public Set<String> content;

    public UserGroup() {
    }

    public UserGroup(String name) {
        this.name = name;
        id= UUID.randomUUID().toString().replaceAll("-","");
        content = new HashSet<>();
    }
}
